Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add use-server-side-upsert option #967

Merged
merged 9 commits into from
Jan 15, 2025
Merged

feat: add use-server-side-upsert option #967

merged 9 commits into from
Jan 15, 2025

Conversation

chihiro-adachi
Copy link
Contributor

@chihiro-adachi chihiro-adachi commented Dec 26, 2024

Why

The upsert option is now available in the record api.
https://cybozu.dev/ja/kintone/docs/rest-api/records/update-records/

cli-kintone has its own UPSERT mode.
It works with the upsert mode of the record api.

What

It supports the upsert mode of the record api.
The upsert mode can be used with the use-server-side-upsert option.

How to test

$ pnpm build
$ ./cli.js record import --base-url http://localhost --app 15 \
 --api-token xxx  \
 --file-path import.csv \ 
 --update-key レコード番号 \
 --use-server-side-upsert

Checklist

  • Read CONTRIBUTING.md
  • Updated documentation if it is required.
  • Added/updated tests if it is required. (or tested manually)
  • Passed pnpm lint and pnpm test on the root directory.

@chihiro-adachi chihiro-adachi changed the title [WIP] Feat upsert feat: add use-server-side-upsert option Dec 26, 2024
@chihiro-adachi chihiro-adachi marked this pull request as ready for review January 14, 2025 05:10
@chihiro-adachi chihiro-adachi requested a review from a team as a code owner January 14, 2025 05:10
@chihiro-adachi chihiro-adachi requested review from tasshi-me and removed request for a team January 14, 2025 05:10
@hisasami hisasami merged commit e645b7b into main Jan 15, 2025
32 checks passed
@hisasami hisasami deleted the feat-upsert branch January 15, 2025 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants